c program to find power of a number using for loop